#include "thread_pool.h"
int thread_pool_init(int work_num,thread_pool_t*pthread_pool){
    tid_arr_init(work_num,&pthread_pool->tid_arr);
    task_queue_init(&pthread_pool->task_queue);
    pthread_mutex_init(&pthread_pool->mutex,NULL);
    pthread_cond_init(&pthread_pool->cond,NULL);
    return 0;
}

